home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 1994 November / macformat-018.iso / Utility Spectacular / Developer / Marlais 0.3.1 / gc4.1-mac / README.amiga < prev    next >
Encoding:
Text File  |  1994-07-26  |  3.3 KB  |  84 lines  |  [TEXT/R*ch]

  1.  
  2. ADDITIONAL NOTES FOR AMIGA PORT
  3.  
  4. These notes assume some familiarity with Amiga internals.
  5.  
  6. WHY I PORTED TO THE AMIGA
  7.  
  8. The sole reason why I made this port was as a first step in getting
  9. the Sather(*) language on the Amiga. A port of this language will
  10. be done as soon as the Sather 1.0 sources are made available to me.
  11. Given this motivation, the garbage collection (GC) port is rather
  12. minimal.
  13.  
  14. (*) For information on Sather read the comp.lang.sather newsgroup.
  15.  
  16. LIMITATIONS
  17.  
  18. This port assumes that the startup code linked with target programs
  19. is that supplied with SAS/C versions 6.0 or later. This allows
  20. assumptions to be made about where to find the stack base pointer
  21. and data segments when programs are run from WorkBench, as opposed
  22. to running from the CLI. The compiler dependent code is all in the
  23. GC_get_stack_base() and GC_register_data_segments() functions, but
  24. may spread as I add Amiga specific features.
  25.  
  26. Given that SAS/C was assumed, the port is set up to be built with
  27. "smake" using the "SMakefile". Compiler options in "SCoptions" can
  28. be set with "scopts" program. Both "smake" and "scopts" are part of
  29. the SAS/C commercial development system.
  30.  
  31. In keeping with the porting philosophy outlined above, this port
  32. will not behave well with Amiga specific code. Especially not inter-
  33. process comms via messages, and setting up public structures like
  34. Intuition objects or anything else in the system lists. For the
  35. time being the use of this library is limited to single threaded
  36. ANSI/POSIX  compliant or near-complient code. (ie. Stick to stdio
  37. for now). Given this limitation there is currently no mechanism for
  38. allocating "CHIP" or "PUBLIC" memory under the garbage collector.
  39. I'll add this after giving it considerable thought. The major
  40. problem is the entire physical address space may have to me scanned,
  41. since there is no telling who we may have passed memory to.
  42.  
  43. If you allocate your own stack in client code, you will have to
  44. assign the pointer plus stack size to GC_stackbottom.
  45.  
  46. The initial stack size of the target program can be compiled in by
  47. setting the __stack symbol (see SAS documentaion). It can be over-
  48. ridden from the CLI by running the AmigaDOS "stack" program, or from
  49. the WorkBench by setting the stack size in the tool types window.
  50.  
  51. SAS/C COMPILER OPTIONS (SCoptions)
  52.  
  53. You may wish to check the "CPU" code option is appropriate for your
  54. intended target system.
  55.  
  56. Under no circumstances set the "StackExtend" code option in either
  57. compiling the library or *ANY* client code.
  58.  
  59. All benign compiler warnings have been suppressed. These mainly
  60. involve lack of prototypes in the code, and dead assignments
  61. detected by the optimizer.
  62.  
  63. THE GOOD NEWS
  64.  
  65. The library as it stands is compatible with the GigaMem commercial
  66. virtual memory software, and probably similar PD software.
  67.  
  68. The performance of "gctest" on an Amiga 2630 (68030 @ 25Mhz)
  69. compares favourably with an HP9000 with similar architecture (a 325
  70. with a 68030 I think).
  71.  
  72. -----------------------------------------------------------------------
  73.  
  74. The Amiga port has been brought to you by:
  75.  
  76. Jesper Peterson.
  77.  
  78. jep@mtiame.mtia.oz.au        (preferred, but 1 week turnaround)
  79. jep@orca1.vic.design.telecom.au (that's orca<one>, 1 day turnaround)
  80.  
  81. At least one of these addresses should be around for a while, even
  82. though I don't work for either of the companies involved.
  83.  
  84.